package Test1;

public class Test1 {
    public static void main(String[] args) {
        Zi z=new Zi();
        z.ziShow();
    }
}

 class Fu{
    String name="Fu";
}
 class Zi extends Fu{
    String name="Zi";
    public void ziShow(){
        String name="ziShow";
        System.out.println(name);    //打印的结果为ziShow
        System.out.println(this.name);   //this对应的是成员变量  Zi
        System.out.println(super.name);  //super对应的是父类中的成员变量  Fu
    }
}
